package com.beans;
import java.util.Date;
/**
 * 管理员实体类
 */
public class AdminInfo{
    private Integer id;
    private String adminName;
    private String password;
    private String note;
    private Integer roleId; //用户所属的角色Id
    private String state; //用户状态
    private Date editDate; //用户最后更新时间

    private  String roleName; //角色名称，数据库adminInfo表中没有这个字段，用来关联查询的

    public String toString() {
        return "AdminInfo{" +
                "id=" + id +
                ", adminName='" + adminName + '\'' +
                ", password='" + password + '\'' +
                ", note='" + note + '\'' +
                ", roleId=" + roleId +
                ", state='" + state + '\'' +
                ", editDate=" + editDate +
                ", roleName='" + roleName + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Date getEditDate() {
        return editDate;
    }

    public void setEditDate(Date editDate) {
        this.editDate = editDate;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }
}
